<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.prime.com.tr/ui"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:c="http://java.sun.com/jsp/jstl/core"
                template="/template/AdminTemplate.xhtml">

    <ui:define name="contentInsert">
        <h:form >
            <h:panelGrid columns="2">
                <h:outputLabel value="Select Outlet: " />
                <h:outputLabel/>
                <h:selectOneListbox id="selectOutletList" value="#{displayReservationSettingMB.outletId}">
                    <f:selectItems var="o" value="#{displayReservationSettingMB.allOutlets}"
                                   itemValue="#{o.id}"
                                   itemLabel="#{o.stakeholder.name}, #{o.outletName}"/>
                </h:selectOneListbox>
                <p:commandButton id="selectOutletSubmit" value="Go" ajax="false"
                                 update="display" >
                </p:commandButton>
            </h:panelGrid>
        </h:form>
        <h:form>

            <br/>
            <h:outputLabel value="Outlet Reservation Settings:"/>
            <br/>
            <h:panelGrid columns="2" border="1" >
                <h:outputLabel value="Outlet name:"/>
                <h:outputText value="#{displayReservationSettingMB.outlet.outletName}"/>

                <h:outputLabel value="No-show penalty:"/>
                <h:outputText value="#{displayReservationSettingMB.outlet.noShowPenalty}"/>

                <h:outputLabel value="Auto confirmation:"/>
                <h:outputText value="#{displayReservationSettingMB.outlet.autoConfirmReservation}"/>

                <h:outputLabel value="Booking window:"/>
                <h:outputText value="#{displayReservationSettingMB.outlet.bookingWindow}"/>

                <h:outputLabel value="Lead time (days):"/>
                <h:outputText value="#{displayReservationSettingMB.outlet.leadTime_Day}"/>

            </h:panelGrid>
        </h:form>
    </ui:define>

</ui:composition>
